-- GENERATED SPELL FOR [Felguard Destroyer] --


function spell0_18977(pUnit, Event) --@Summoned Demon,Self--
pUnit:FullCastSpellOnTarget(7741,pUnit)
pUnit:RegisterEvent('Sorts_18977', 594, 1)
end

function spell1_18977(pUnit, Event) --@Sweeping Charge,n/a--
pUnit:FullCastSpellOnTarget(33971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18977', 609, 1)
end

function Sorts_18977(pUnit, Event)
local choix_sorts_18977 = math.random(0, 1)
if choix_sorts_18977 == 0 then
pUnit:RegisterEvent('spell0_18977', 1, 1)
end
if choix_sorts_18977 == 1 then
pUnit:RegisterEvent('spell1_18977', 1, 1)
end
end

function mob18977_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18977', math.random(1500, 3000), 1)
end

function mob18977_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18977_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18977_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18977, 1, 'mob18977_Action')
RegisterUnitEvent(18977, 2, 'mob18977_Leave')
RegisterUnitEvent(18977, 3, 'mob18977_Kill')
RegisterUnitEvent(18977, 4, 'mob18977_Die')
